#include <People.h>

People::People(const char* name, const Length& height):name_m(name), height_m(height)
{
}


void People::toString(std::ostream & os,const Format &format)
{
    printName(os);
    printDelimiter(os);
    printHeight(os,format);
}


void People::printName(std::ostream & os)
{
    os<<name_m;
}
void People::printDelimiter(std::ostream & os)
{
    os<<"\t";
}
void People::printHeight(std::ostream & os,const Format &format)
{
    height_m.toString(os,format);
}

